package org.ef.anticheck;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;

public class QueryActivity extends TabActivity {

	@Override
	public void onCreate(final Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		this.setContentView(R.layout.query);

		final Resources res = this.getResources();
		final TabHost tabHost = this.getTabHost();

		tabHost.addTab(tabHost
				.newTabSpec("Input")
				.setIndicator("Input",res.getDrawable(R.drawable.query_tab_input))
				.setContent(new Intent().setClass(this, QueryFromInput.class)));

		tabHost.addTab(tabHost
				.newTabSpec("CallHistory")
				.setIndicator("CallHistory",res.getDrawable(R.drawable.query_tab_call_history))
				.setContent(new Intent().setClass(this, QueryFromCallHistory.class)));

		tabHost.addTab(tabHost
				.newTabSpec("SmsHistory")
				.setIndicator("SmsHistory",res.getDrawable(R.drawable.query_tab_sms_history))
				.setContent(new Intent().setClass(this, QueryFromSmsHistory.class)));
	}
}